@extends('admin.layout.index')


@section('content')
<div class="mws-panel grid_8">
	<div class="mws-panel-header">
		<span><i class="icon-th-list"></i>商品列表</span>
	</div>
	<div class="mws-panel-body no-padding">
	    <table class="mws-table">
	        <thead>
	            <tr>
	                <th>id</th>
	                <th>分类名称</th>
	                <th>父级id</th>
	                <th>分类路径</th>
	                <th>状态</th>
	                <th>操作</th>
	            </tr>
	        </thead>
	        <tbody>
	        @foreach($data as $k => $v)
	            <tr>
	                <td>{{ $v['cid'] }}</td>
	                <td>{{ $v['name'] }}</td>
	                <td>{{ $v['pid'] }}</td>
	                <td>{{ $v['path'] }}</td>
	                <td>{{ $v['status'] }}</td>
	                <td style="text-align:center">
	                	<a href="/admin/cate/delete/{{ $v['cid']}}" style="margin-right:10px; color:black; font-size:16px" title="删除" ><i class="icon-trash"></i></a>
	                	<a href="/admin/cate/edit/{{ $v['cid']}}" style="margin-right:10px; color:black; font-size:16px " title="修改"><i class="icon-pencil-2"></i></a>
	                	<a href="/admin/cate/add/{{ $v['cid']}}" style="margin-right:10px; color:black; font-size:16px " title="添加子类" ><i class="icon-plus-sign"></i></a>
	                </td>
	            </tr>
	        @endforeach
	        </tbody>
	    </table>
	</div>
	</div>
@endsection